extends Control



func _ready() -> void:
	$AnimationPlayer.play("ani_begin")
	pass

func load_resouce()->void:
	# 这里进行要加载的内容，包括连接服务器，加载资源包等等...
	Manager_Websocket.connect_server()
	await get_tree().create_timer(4.0).timeout
	$AnimationPlayer.play("ani_end")
	pass


func _on_animation_player_animation_finished(anim_name: StringName) -> void:
	match anim_name:
		"ani_begin":
			$AnimationPlayer.play("ani_loop")
			load_resouce()
		"ani_end":
			UIManager.load_next_ui()
	pass
